﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Services.Protocols;


namespace Doo.Extension
{
    [AttributeUsage(AttributeTargets.Method)]
    public class VersionCacheAttribute : SoapExtensionAttribute 
    {
        public VersionCacheAttribute() 
        {

        }

        public VersionCacheAttribute(string versionKey)
        {
            this._versionKey = versionKey;
        }

        private string _versionKey;
        public string VersionKey
        {
            get
            {
                return _versionKey;
            }
            set
            {
                this._versionKey = value;
            }
        }

        public override Type ExtensionType
        {
            get { return typeof(VersionCacheExtension); }
        }

        public override int Priority { get; set; }
    }
}
